import { request } from '@umijs/max';

export async function CustomerList(data: any) {
  return request('/customer/list', {
    method: 'POST',
    data,
  });
}

export async function CustomerView(data: any) {
  return request('/customer/view', {
    method: 'POST',
    data,
  });
}

export async function CustomerCreate(data: any) {
  return request('/customer/add', {
    method: 'POST',
    data,
  });
}

export async function CustomerUpdate(data: any) {
  return request('/customer/update', {
    method: 'POST',
    data,
  });
}

export async function CustomerDelete(data: any) {
  return request('/customer/del', {
    method: 'POST',
    data,
  });
}
